package admin_login_types

import "oc_saas/internal/utils"

// 生成token
func GenTokenString(data *LoginSearchUser, only_id string) string {
	var j = new(utils.JWTAuth)
	claims := j.CreateClaims(utils.BaseClaims{
		ApplicationTag: data.Name,
		Domain:         data.Domain,
		DbName:         data.DbName,
		UUID:           only_id,
	}, data.JWTExpire)
	token := j.GenTokenString(claims)
	return token
}
